const Koa = require("koa");

const app = new Koa();

try {
  const port = process.env.PORT || 8000;
  const host = process.env.IP || "0.0.0.0";
  app.listen(port, host);
  console.log(`Server running at http://${host}:${port}`);
} catch (error) {
  console.error(error);
}
